package org.glut.saltedfish.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.glut.saltedfish.domain.ChatRecords;
import org.glut.saltedfish.domain.User;

public interface ChatRecordsMapper {
    List<ChatRecords> viewMessageBySI(
            @Param("senderId") Integer senderId,
            @Param("receiverId") Integer receiverId);

    List<ChatRecords> viewMessageByRI(
            @Param("receiverId") Integer senderId,
            @Param("senderId") Integer receiverId);

    Integer unreadMessage(
            @Param("senderId") Integer senderId,
            @Param("receiverId") Integer receiverId);

    List<ChatRecords> searchObjectBySI(Integer id);

    List<ChatRecords> searchObjectByRI(Integer id);

    Integer insertChatRecords(ChatRecords record);
}
